﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_menu : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["UserInfo"] != null)
        {
            ManageUser objUser = Session["UserInfo"] as ManageUser;
            if (objUser.IsInRole("SU"))
                div_su.Visible = true;
            //else if (objUser.IsInRole("Center Controller"))
            //    div_center_controller.Visible = true;
            //else if (objUser.IsInRole("Student"))
            //    div_student.Visible = true;
            else
            {
                if (objUser.IsInRole("Administrator"))
                    div_center_admin.Visible = true;
                if (objUser.IsInRole("Clerk"))
                    div_center_clerk.Visible = true;
            }
            
            
        }
    }
}
